import ContextMenu from '@/components/rambler-context-menu/context-menu.vue'
import Icon from '@/icon'
import BasicDialog from "@/components/basic-dialog/BasicDialog.vue"
import ChromeIcon from '@/components/chrome-img/chrome-icon.vue'
import BackgroundCandidate from "@/components/background-candidate/background-candidate.vue";
import {
    Button,
    Input,
    Divider,
    Tag,
    TableColumn,
    Table,
    InputPassword,
    Textarea,
    Tabs,
    TabPane,
    FormItem,
    Form
} from "ant-design-vue"

import {LoadingOutlined, EyeOutlined} from "@ant-design/icons-vue"

export default function registerGlobalComponents(app: any) {
    app.component('ContextMenu', ContextMenu)
    app.component('BasicIcon', Icon)
    app.component('BasicDialog', BasicDialog)
    app.component("BackgroundCandidate", BackgroundCandidate)
    app.component('ChromeIcon', ChromeIcon)

    // 图标
    app.component("LoadingOutlined", LoadingOutlined)
    app.component("EyeOutlined", EyeOutlined)

    // ant-design-vue全局组件
    app.component('AButton', Button)
    app.component('AInput', Input)
    app.component("ADivider", Divider)
    app.component("ATag", Tag)
    app.component("ATableColumn", TableColumn)
    app.component("ATable", Table)
    app.component("AInputPassword", InputPassword)
    app.component("ATextarea", Textarea)
    app.component("ATabs", Tabs)
    app.component("ATabPane", TabPane)
    app.component("AFormItem", FormItem)
    app.component("AForm", Form)

}
